﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Domain
{
    [DataContract(Name = "Person", Namespace = "tstNS")]
    public class Person
    {
        [DataMember]
        public int PersonID { get; set; }
        [DataMember]
        public string LastName { get; set; }
        [DataMember]
        public string FirstName { get; set; }
        [DataMember]
        public DateTime? HireDate { get; set; }
        [DataMember]
        public DateTime? EnrollmentDate { get; set; }

        [DataMember]
        public ICollection<Enrollment> Enrollments { get; set; }
        [DataMember]
        public ICollection<Course> Courses { get; set; }

    }
}
